package gee

import (
	"log"
	"time"
)

func Logger() HandlerFunc {
	return func(c *Context) {
		t := time.Now()
		c.Next()
		log.Printf("[%v] [%d] %s", time.Since(t), c.StatusCode, c.Req.RequestURI)
	}
}
